package cc.eddic.examinationsystem.repository;

import cc.eddic.examinationsystem.domain.Exam;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface ExamRepository extends JpaRepository<Exam, Long> {
    Optional<Exam> findByIdAndVersion(Long id, Integer version);
}
